<script type="text/javascript">
	function onlyNumbers(evt) 
	{
		evt = (evt) ? evt : window.event
		var charCode = (evt.which) ? evt.which : evt.keyCode
		if (charCode > 31 && (charCode < 48 || charCode > 57)) {
			//status = "This field accepts numbers only."
			alert("Harus di Isi Angka");
			return false
		}
		//status = ""
		return true 	
	}
</script>
{mstrbarangdet}
<form method="post" name="frmEdit" action="<?php echo site_url('masterbarangdetailcontroller/ubahdetailbarang');?>">
    <h3 align="center"><u><strong>EDIT MASTER BARANG</strong></u> </h3>
    <table width="100%" cellpadding="3" cellspacing="0" border="1">
        <tr>
            <td width="154"><strong>Kode Barang</strong></td>
            <td width="9" align="center"><strong>:</strong></td>
            <td width="893" colspan="3"><input type="text"  name="kdbrng" id="kdbrng" maxlength="12" size="25" value="{KodeBarang}" readonly="readonly"/></td>
        </tr>
        <tr>
            <td width="154"><strong>Kode Barang Detail</strong></td>
            <td width="9" align="center"><strong>:</strong></td>
            <td width="893" colspan="3"><input type="text"  name="kdbrngdet" id="kdbrngdet" maxlength="12" size="25" value="{KodeDetailBarang}" readonly="readonly"/></td>
        </tr>
        <tr>
            <td width="150"><strong>Nama Barang</strong></td>
            <td width="12" align="center"><strong>:</strong></td>
            <td ><input type="text"  name="nmbrng" id="nmbrng" size="25" maxlength="20" value="{Productname}"/></td>
        </tr>
        <tr>
			<td width="150"><strong>Description</strong></td>
            <td width="12" align="center"><strong>:</strong></td>
            <td>
                <input type="text"  name="description" id="description" size="100" value="{Description}"/>
            </td>
		</tr>
        <tr>
			<td width="150"><strong>Harga</strong></td>
            <td width="12" align="center"><strong>:</strong></td>
            <td>
                <input type="text"  name="itmprice" id="itmprice" size="50" value="{Itemprice}" onkeypress="return onlyNumbers(event);"/>
            </td>
		</tr>
        <tr>
            <td width="150"><strong>Tipe Unit</strong></td>
            <td width="12" align="center"><strong>:</strong></td>
            <td>
            	<select name="tpunit">
                	<option value="{Typeunit}">{Typeunit}</option>
                    <option value="BTG">Batang</option>
                    <option value="DUS">Dus</option>
                    <option value="LBR">Lembar</option>
                    <option value="PCS">Pcs</option>
                    <option value="ROLL">Roll</option>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan="3" align="center"><input type="submit" value="Save" name="btnSave" >&nbsp;<input type="button" name="btnClose" value="Back" class="btn" onclick="javascript:history.back(1);" /></td>
        </tr>
    </table>
</form>
{/mstrbarangdet}